package com.spring.gll.single;

public class HungrySingle {
    private static HungrySingle hungrySingle=new HungrySingle();

    public HungrySingle() {
    }

    public static HungrySingle getHungrySingle(){
        return hungrySingle;
    }

    public static void main(String[] args) {
        HungrySingle hs1 = HungrySingle.getHungrySingle();
        HungrySingle hs2 = HungrySingle.getHungrySingle();
        System.out.println(hs1);
        System.out.println(hs2);
    }
}
